<?php
/* @var $this BlockController */
/* @var $model Block */

$this->breadcrumbs=array(
        'Háztömb'=>array('index'),
        $model->name=>array('view','id'=>$model->id),
        'Szerkesztés',
);

?>

<ul
    class="nav nav-tabs"
    id="update-tabs">
    <li class="active"><a href="#update" data-toggle="tab">Háztömb</a></li>
    <li><a href="#providers" data-toggle="tab">Szolgáltatók</a></li>
    <li><a href="#flatCategories" data-toggle="tab">Lakás kategóriák</a></li>
</ul>

<div class="tab-content">

    <div
        class="tab-pane active"
        id="update">
        <?php echo $this->renderPartial('_form', array('model'=>$model, 'address'=>$address)); ?>
    </div>

    <div
        class="tab-pane"
        id="providers">
        <?php $this->renderPartial('_providers', array('provider'=>$provider, 'model'=> $model)); ?>
    </div>

    <div
        class="tab-pane"
        id="flatCategories">
        <?php $this->renderPartial('_flatCategories', array('flatCategory'=>$flatCategory, 'model'=> $model)); ?>
    </div>

</div>

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/tabs.js');

?>
